package com.forum.controller;

import com.common.config.MyBatisPlusPageConfig;
import com.forum.controller.config.CrosConfig;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Import;


/**
 * @author Tsing
 */
@SpringBootApplication
@MapperScan(basePackages = {"com.forum.mapper.*"})
@ComponentScan(basePackages = {"com.common.service","com.forum.controller","com.forum.impl","com.forum.controller.config"})
@ServletComponentScan
@Import({MyBatisPlusPageConfig.class})
public class SchoolForumApplication {
    public static void main(String[] args) {
        SpringApplication.run(SchoolForumApplication.class,args);
    }

}
